<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h1 class="title_color">仓库管理</h1>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table text-left" border="1">
            <tr>
                <td colspan="6"><a href="{:url('add_cangku')}" class="btn btn-info">新增仓库</a><span class="lr_5"></span><a
                        href="{:url('lend_cangku')}" class="btn-info btn">导入仓库</a></td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">仓库名：</label></td>
                <td><input type="text" class="form-control" name="ckm"></td>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">仓库号：</label></td>
                <td><input type="text" class="form-control" name="ckh"></td>
                <td style="min-width: 140px" class="text-left" colspan="2">
                    <button class="btn btn-info query" type="submit">查询</button>
                    <button class="btn btn-info emptyIf" type="button">清空查询条件</button>
                    <button class="btn btn-info LendExcel" type="button">导出Excel</button>
                </td>
            </tr>
        </table>
        <table class="table row-margin-top table-bordered table-hover text-center bud_hei">
            <tr class="info">
                <th class="text-center">No.</th>
                <th class="text-center">仓库名</th>
                <th class="text-center">仓库号</th>
                <th class="text-center">仓库管理员</th>
                <th class="text-center">仓库联系人</th>
                <th class="text-center">仓库联系电话</th>
                <th class="text-center">添加人</th>
                <th class="text-center">添加时间</th>
                <th class="text-center">修改人</th>
                <th class="text-center">修改时间</th>
                <th class="text-center">操作</th>
            </tr>
            {volist name="data" id="row" key="k"}
            <tr>
                <td>{$k+(request()->param('page')?request()->param('page'):1-1)*10}</td>
                <td>{$row.ckjc}</td>
                <td><a href="see_cangku.html">{$row.ckh}</a></td>
                <td>{$row.ckgly}</td>
                <td>{$row.cklxr}</td>
                <td>{$row.cklxdh}</td>
                <td>{$row.cuser}</td>
                <td>{$row.ctime}</td>
                <td>{$row.puser}</td>
                <td>{$row.ptime}</td>
                <td><a href="{:url('update_cangku',['id'=>$row.id])}">修改</a>&nbsp;<a href="javascript:;" class="delthistr">删除</a></td>
            </tr>
            {/volist}
            <tfoot>

            </tfoot>
        </table>
        <div class="row text-center" id="pageText" style="padding: 0;margin: 0;">
					<div class="col-sm-6 text-left"><div class="padding-10 countSize">共{$count}条记录，{$maxpage}页&nbsp;&nbsp;</div></div>
				<div class="col-sm-6 text-right">{$page}</div>
		</div>
    </form>
</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>
<script>
    $(document).ready(function () {
        $('.emptyIf').on('click',function () {
            $(this).closest('form').find('input').val()
            $(this).closest('form').submit()
        })
        var $ObjectNum = $(".ObjectNum");
        toNum($ObjectNum);

    })
    /*删除这条*/
    $(document).on("click", ".delthistr", function () {
        swal({
                title: "",
                text: "确定删除本条数据？",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                closeOnConfirm: false,
            },
            function () {
                swal("删除！", "", "success");
            });
    })
</script>
</body>

</html>
